<template>
	<view>
		<view class="top_bg">
			<u-swiper
					:list="list3"
					previousMargin="30"
					nextMargin="30"
					circular
					:autoplay="false"
					radius="5"
					bgColor="transparent"
			></u-swiper>
		</view>
		<view class="title">
			<view>品牌挚友卡</view>
			<view class="desc">VIP WELFARE</view>
		</view>
		<view class="flex">
			<image mode="aspectFit" src="https://pic.imgdb.cn/item/66050e979f345e8d030bb9eb.png" />
		</view>
		
		<view class="title">
			<view>积分兑换</view>
			<view class="desc">REDEEM POINTS</view>
		</view>
		<view>
			 <u-swiper
					:list="list3"
					indicator
					indicatorMode="line"
					circular
			></u-swiper>
		</view>
			<view style="display: flex;justify-content: space-between;flex-wrap: wrap;padding: 0rpx 20rpx 20rpx 20rpx;">
				<view class="card_item" v-for="item in 4" :key="item">
					<image @click="goPage()" mode="aspectFill" :src="item===1?'../../../static/shalong/sl2.png':'../../../static/shalong/sl3.png'" style="width: 100%;height: 341rpx;" />
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list3: [
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
				],
			}
		},
		methods: {
			goPage(){
				uni.navigateTo({
					url:"./life_circle/life_circle"
				})
			}
		}
	}
</script>

<style lang="less" scoped>
.top_bg{
	background-color: #000;
	padding-top: 50rpx;
	height: 350rpx;
}
.title{
	text-align: center;
	padding: 20rpx 0rpx;
	font-size: 30rpx;
	.desc{
		font-size: 0.8em;
		letter-spacing:8rpx;
		padding-top: 10rpx;
	}
}
.flex{
	display: flex;
	justify-content: space-between;
	align-items: center;
	image{
		width: 100%;height: 250rpx;
	}
}
.card_item{
		width: 341rpx;
		height: 341rpx;
		background: #FFFFFF;
		box-shadow: 4rpx 4rpx 8rpx 2rpx rgba(197,197,197,0.25);
		border-radius: 15rpx 15rpx 15rpx 15rpx;
		margin-top: 24rpx;
		.yuyue-btn{
			width: 254rpx;
			height: 39rpx;
			background: linear-gradient(180deg, #494949 0%, #000000 100%);
			border-radius: 4rpx;
			margin-top: 28rpx;
			color: #fff;
			text-align: center;
			margin-left: 34rpx;
			font-size: 20rpx;
			line-height: 39rpx;
		}
	}
</style>
